import type { INSPECTION_RESULT } from './constant'

export interface QueryParams {
  name?: string
  num?: string
  time?: string
  item?: string
  result?: INSPECTION_RESULT
  pageNumber: number
  pageSize: number
}

export interface ListItem {
  [key: string]: any
  equipmentId: number
  name: string
  /** 设备编号 */
  num: string
  manufacturer: string
  installationTime: string
  item: string
  itemName: string
  content: string
  /** 巡检时间 */
  time: string
  /** 执行时间 */
  executeTime: string
  /** 巡检结果0-正常,1-异常 */
  result: INSPECTION_RESULT
  executeUser: string
}

export interface SaveParams extends Omit<ListItem, 'name' | 'num' | 'manufacturer' | 'installationTime'> {}
